package com.bytedance.service;

import com.bytedance.model.Result;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import com.bytedance.dataobject.B;

import java.util.List;

public interface BService {

    Result<B> add(B b);

    Result<B> update(B b) throws Exception;

    Result<List<B>> add(@Param(value = "bList") List<B> bList);

    Result<Integer> delete(String a, String c);

    Result<List<B>> getAll();

    Result<Integer> deleteByC(String c);
}
